Smart polymers for advanced applications: a mechanical perspective review