Resonant tunneling condition and transmission periodic characteristics for a metal barrier in the Fabry–Perot cavity