Interface-related resistive switching in BiFeO3 thin films