Thickness dependence of ac losses in circular disks of YBa2Cu3O7 films in perpendicular magnetic fields