The influence of lateral interactions in the occurrence of ensemble effects in chemisorption and catalysis