Semiconductor quantum wells with in-plane magnetic field: the self-consistent treatment