An intelligent polymer composite with self-lubricating and self-healing functionalities