Nursing home resident sentenced to 45 years for murder, rape of 80-year-old invalid