Search for CP violation through an amplitude analysis of D 0 → K + K − π + π − decays