Random sequential adsorption and diffusion of dimers and k-mers on a square lattice