How to understand and cope with mood swings