Growth and capping of InAs/GaAs quantum dots investigated by x-ray Bragg-surface diffraction