Accurate analysis of plasmon propagation in metal and graphene nanostructures