Two men have been jailed for their roles in a robbery conspiracy which saw staff at an Accrington Post Office sprayed with ammonia.