Grandmother used sledgehammer, knife to kill baby, prosecutors allege