A simple thermodynamic model for seasonal variation of monsoon rainfall