Solar line profiles of He I 584 A and He II 304 A