Study of optically induced effects due to bending and twisting using the vector finite-element method