In situ grazing-incidence small-angle X-ray scattering observation of block-copolymer templated formation of magnetic nanodot arrays and their magnetic properties