Higgs boson masses in the MSSM with general soft breaking