New technique could help head off coral bleaching