Text this: Optimal domain and integral extension of operators