Gravitational wave backgrounds and the cosmic transition from Population III to Population II stars