Functional principal component analysis for longitudinal observations with sampling at random