General helicity formalism for single and double spin asymmetries in pp ---> pion + X