Theory of valence subbands in GaAs heterostructures