Method to control a photovoltaic plant and corresponding control apparatus