Indirect measurement of N-15(p,alpha)C-12 and O-18(p,alpha)N-15. Applications to the AGB star nucleosynthesis