How do the relative charges and relative masses of a proton, neutron, and an electron contribute to the overall structure and stability of the atom?