Acute and nonobtuse triangulations of polyhedral surfaces