Optimal Strategy to Exploit the Flexibility of an Electric Vehicle Charging Station