Syntheses and application of squarylium dyes