Economics, cultural transmission, and the dynamics of the sex ratio at birth in China