A two-layer simulation of the YBa2Cu3O7−x film microwave surface resistance