Elastic wave generated by granular impact on rough and erodible surfaces