Sleep apnea increases risk of heart attack, study finds