Scientists develop divide and conquer approach for more stable power generation