Hamilton shows confidence in Mercedes despite engine problems