Insomnia linked to heart attacks