Intrinsic tunneling in cuprates and manganites