Cascades of alternating pitchfork and flip bifurcations in H-bridge inverters