Cost-aware Generalized $\alpha$-investing for Multiple Hypothesis Testing