A class D switching power amplifier with high efficiency and wide bandwidth by dual feedback loops