Population Properties of Compact Objects from the Second LIGO-Virgo Gravitational-Wave Transient Catalog