The elastic tensor of given symmetry nearest to an anisotropic elastic tensor