Analysis of the Fiske modes in a short Josephson junction with nonuniform critical current density