Cracks and re-entrant corners in functionally graded materials