Excitonic splitting in polymeric materials: a quantum-mechanical model including interchain interactions and dielectric effects