Structure and nonlinear electrical properties of squaric acid derivatives: a theoretical study of the conformation and deprotonation effects