Effective field theory description of the pion form factor