A family of main-chain polymeric Lewis acids: synthesis and fluorescent sensing properties of boron-modified polythiophenes.