Conjugated Microporous Polymers with Dimensionality‐Controlled Heterostructures for Green Energy Devices