Optical boundary value problem in spatially dispersive media