Accountable attribute-based authentication with fine-grained access control and its application to crowdsourcing