Interaction of a fluxon with a local inhomogeneity in a long Josephson junction