Two-scale homogenization of elastic layered composites with interfaces oscillating in two directions