Dynamic analysis of a bistable energy harvester using perturbation method