Thickness dependence of the twin density in YBa2Cu3O7−δ thin films sputtered onto MgO substrates