Bayesian inference for Birnbaum–Saunders distribution and its generalization