Cardinal Egan to have knee replaced