Gilbert man gets life sentence for killing of 2-year-old son