Angular distribution of photoelectrons in argon and xenon