Inverse design integrated with circuit simulation