Finite difference methods for hyperbolic problems with boundaries: stability and multiscale analysis