Good sleep is just as important for your pets as it is for you. Here’s how to optimize their shut-eye.