Twitter study reveals mood swings