A phenomenological bag model with variable bag pressure