Man gets life term for raping 3-month-old baby