Data granularity and the optimal planning of distributed generation