Ultrafast photoluminescence in metals: Theory and its application to silver