Response of YAP:Ce scintillators to energetic heavy ions