On dual approximation principles and optimization in continuum mechanics