Generation of undercut structures with negative resists