Exact solutions for functionally graded and laminated elastic materials