A finite element method to solve a population dynamics stage-structured model of intertidal barnacles