Influence of demand patterns on the optimal orientation of photovoltaic systems