A characterization of the desarguesian and the Figueroa planes of order q^3