Highly stretched meshes as functionals of solutions