Model reduction of nonlinear mechanical systems via optimal projection and tensor approximation