Generalized Solutions of Boundary Problems for Layered Composites with Notches or Cracks