Elastic and nonlinear acoustic properties and thermal expansion of rare-earth metaphosphate glasses