Boron(iii) β-diketonate-based small molecules for functional non-fullerene polymer solar cells and organic resistive memory devices