Spectroscopic investigation of squaraine dyes