How to compute p-values and Cohen’s d for z-tests