This is why you sometimes struggle to sleep around the time of your period