Intelligent Reflecting Surface-Aided Wireless Communications: A Tutorial