Demonstrating the feasibility of probing the neutron-star equation of state with second-generation gravitational-wave detectors