The effect of compulsory schooling laws and child labor restrictions on fertility: evidence from the early twentieth century