Senior Housing Properties Trust to purchase 23 medical office buildings for USD539m