First principles elaboration of low band gap ladder-type polymers.