How was the advancement of the cell theory closely tied to advancements in technology?