Throughput Maximization for Intelligent Reflecting Surface-Aided Device-to-Device Communications System