Temporal resolution in energy systems optimization models