Modification of the finite difference scheme for efficient analysis of thin lossy metallayers in optical devices