Modeling Line Profiles in beta Cephei Stars Including Temperature and Pressure Effects