Stochastic analysis of photovoltaic power generation and its applications in power distribution systems