Light could replace shock to regulate hearts