Monte Carlo simulation of two-dimensional dimers between hard walls. Bulk equation of state and site-density profiles