Symmetric random walks on certain amalgamated free product groups