Green pea galaxies: physical properties of low-redshift analogs of high-redshift Lyman-alpha emitters