Quasi-concave envelope of a function and convexity of level sets of solutions to elliptic equations