Variational multiscale enrichment method with mixed boundary conditions for modeling diffusion and deformation problems