Electronic structure of quantum wells with in-plane magnetic fields