Current in a system formed by a microprobe and a thin-film layered structure