General solutions of second-order linear difference equations of Euler type