Underlying A4 symmetry for the neutrino mass matrix and the quark mixing matrix