Control circuits for inverters