Training and insomnia: why it sometimes relaxes and sometimes disrupts sleep