Solution of Bloch equations involving amplitude and frequency modulations