Methods of net energy analysis and its application to energy producing systems for comparison of alternative energy resources