Mathematical analysis of variational isogeometric methods