Vitamin D may prevent heart attacks: study