Man who beat 15-year-old girl he got pregnant jailed