First-principles studies of substituent effects on squaraine dyes