Algorithms for using an activity-based accelerometer for identification of infant sleep-wake states during nap studies.