A jilted boyfriend who punched, kicked and stabbed his pregnant ex-girlfriend in an attempt to kill his own unborn child has been jailed.