Square‐well chains: Bulk equation of state using perturbation theory and Monte Carlo simulations of the bulk pressure and of the density profiles near walls