Spectroscopic analysis of the candidate beta Cephei star sigma Cas: Atmospheric characterization and line-profile variability