Homogeneous versus inhomogeneous quantum-mechanical master equations